package com.ruoyi.ewem.controller;

import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.ewem.domain.Mode;
import com.ruoyi.ewem.service.ModeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: Yanyanyu
 * @Date: 2024/7/23 9:47
 */
@RestController
@RequestMapping("mode")
public class ModeController extends BaseController {

    @Autowired
    private ModeService modeService;

    @RequestMapping("list")
    public TableDataInfo list(){
        List<Mode> list=modeService.list();
        return getDataTable(list);
    }

}
